package com.github.edu.repair.manager.domain;

import com.github.admin.edu.orm.repository.CustomRepository;
import com.github.admin.edu.security.jwt.server.entity.TSysRoleStep;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-30
 */
public interface SysRoleStepDomain extends CustomRepository<TSysRoleStep,Long> {

    /**
     * 根据流程步骤查询流程步骤授权信息
     * @param stepId
     * @return
     */
    @Query("select t from TSysRoleStep t where t.stepid =:stepId")
    List<TSysRoleStep> getAllByStepid(@Param("stepId")Integer stepId);

}
